package base.hash;

import java.util.HashSet;

public class WkUtils {

	private static HashSet<String> set = new HashSet<>();
	
	/**
	 * 字符最小值
	 */
	private static final int MINCHAR = 48;
	/**
	 * 字符最大值
	 */
	private static final int MAXCHAR = 122;
	
	/**
	 * 最长256位
	 */
	//private static final int MAXLEN = 0b1111_1111;
	private static final int MAXLEN = 0b1101;
	
	static {
		set.add("5bdf5d68788f51823c3a14eee51e3cb57bd45b17263f6a239ba6a20f3720385b");
		set.add("c63a830f25f76c9cfe6e9752d79526e976e422e086957f30b8a177498b97bc3f");
		set.add("bec1d4f8f8d05107b10976068bca0e6291c6807f90548a1345300aaa0609d7de");
		set.add("27b30a4f0fb1f6c78a9fb84abd748331f41d2eb1a699af8a8f10551d2fa92e00");
		set.add("f29662251124b98ea2eb5d7e71e4ff68988627c7ae51533f6b08f7737e4c0f34");
		set.add("25f7ef6f6b273c503c783b78a077c63801a5e604f889aa9c441143cce58af0b0");
		set.add("74c875cab45bca78e31c8d20bc25b643023f9623ecb2af6f0c1f74f877c89654");
		set.add("474815675ebe6ac2e29d771fa2a750896b98d85780c710a5ba62dce11eb9a307");
		set.add("4a3b5339de765737c0e149c125b95ad81dede4f81a1306ede3c0d23e582c0a59");
		set.add("5eee0fb8289c03dfcc88f2cbd2ac6112fa78408b0ff4cc2e5d2372aaf01d27a9");
	}
	
	/**
	 * @return
	 * G_Y
	 * 2018年3月14日
	 * 说明:挖币
	 */
	public static String getOneJmhb(){
		StringBuilder sb = new StringBuilder();
		for(int len=13;len<=MAXLEN;len++) {//确定有一个解是13位长度字符串
			sb.delete(0, sb.length());
			sb.setLength(len);
			while(true) {
				for(int i=1;i<=len;i++) {//遍历
					for(int j=1;j<=i;j++) {
						
					}
				}
			}
		}
		return sb.toString();
	}
	
	public static StringBuilder getString(int len, int index, StringBuilder sb) {
		if(index>len) {
			return sb;
		}
		sb.append("");
		getString(len,index+1,sb);
		return sb;
	}
	
}
